package net.app.zoneland.search.service;

import net.app.zoneland.search.domain.NovelEntity;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @Description 小说ES接口
 * @Author LENOVO
 * @CreateTime 2021/2/14 9:40
 * @Version: 1.0
 */
public interface EsNovalService extends ElasticsearchRepository<NovelEntity,String> {

    //根据title和author查询
    List<NovelEntity> findByTitleAndAuthor(String title, String author);

}
